<div class="card shadow">
    <div class="card-header bg-primary text-white">
        <h5 class="mb-0">新增农产品</h5>
    </div>
    <div class="card-body">
        <form action="products?action=add" method="post">
            <div class="mb-3">
                <label class="form-label">产品名称</label>
                <input type="text" name="name" class="form-control" required>
            </div>

            <div class="row">
                <div class="col-md-6 mb-3">
                    <label class="form-label">价格</label>
                    <input type="number" step="0.01" name="price" class="form-control" required>
                </div>
                <div class="col-md-6 mb-3">
                    <label class="form-label">库存数量</label>
                    <input type="number" name="stock" class="form-control" required>
                </div>
            </div>

            <div class="mb-3">
                <label class="form-label">产品描述</label>
                <textarea name="description" class="form-control" rows="3"></textarea>
            </div>

            <div class="mb-3">
                <label class="form-label">图片地址</label>
                <input type="url" name="imageUrl" class="form-control">
            </div>

            <button type="submit" class="btn btn-success">
                <i class="fas fa-save me-2"></i>保存商品
            </button>
        </form>
    </div>
</div>
